refactor(twine): use py_binary for publishing in WORKSPACE#3734
refactor(twine): use py_binary for publishing in WORKSPACE#3734rickeylev merged 4 commits intobazel-contrib:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the py_wheel rule in python/packaging.bzl to use py_console_script_binary instead of py_binary for the twine publishing target. This change simplifies the implementation by removing the need for manual entry point script generation. Feedback suggests removing the imports = ["."] attribute from the new rule call to prevent potential name collisions and redundant path configurations.
|
Since py_binary supports main_module now and I think twine also supports python -m twine, what is the reason to not just use py_binary(main_module=...)? |
|
OK, the last time. |
|
I force merged to spare us. The network has been super flaky for some reason. I setup an AI to auto-retry yesterday and it took like an hour and dozens of attemps. |
Remove the reliance on defunct entry point code.
Work towards #3642.